home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 48 / PC Gamer IT CD 48 1-2.iso / age2 / AoE2demo.exe / 1033 / CABFILE / MSGAME.CAB / Data / gamedata.drs / Unnamed File 000019.bina < prev    next >
Text File  |  1999-10-01  |  15KB  |  712 lines

  1. (defrule
  2.     (true)
  3. =>
  4.     (set-strategic-number sn-wood-gatherer-percentage 10)
  5.     (set-strategic-number sn-food-gatherer-percentage 90)
  6.     (set-strategic-number sn-gold-gatherer-percentage 0)
  7.     (set-strategic-number sn-stone-gatherer-percentage 0)
  8.     (disable-self)
  9. )
  10.  
  11. ;DARK AGE
  12. (defrule
  13.     (current-age == dark-age)
  14.     (wood-amount < 100)
  15.     (or
  16.         (building-type-count-total mill == 0)
  17.         (building-type-count-total lumber-camp == 0)
  18.     )
  19. =>
  20.     (set-goal resource-needed WOOD)
  21. )
  22.  
  23. (defrule
  24.     (goal upgrade-conflict NOTICE)
  25.     (current-age == dark-age)
  26.     (food-amount < 500)
  27. =>
  28.     (set-goal resource-needed FOOD)
  29. )
  30.  
  31. (defrule
  32.     (current-age == dark-age)
  33.     (gold-amount < 50)
  34.     (or
  35.         (goal rush-control RUSHING)
  36.         (players-military-population any-enemy >= five-percent-pop)
  37.     )
  38. =>
  39.     (set-goal resource-needed GOLD)
  40. )
  41.  
  42. ;***********************************************
  43. ;***********************************************
  44.  
  45. (defrule
  46.     (goal resource-needed NO)
  47.     (current-age == dark-age)
  48.     (civilian-population < 10)
  49.     (not (strategic-number sn-wood-gatherer-percentage == 10) )
  50. =>
  51.     (set-strategic-number sn-wood-gatherer-percentage 10)
  52.     (set-strategic-number sn-food-gatherer-percentage 90)
  53.     (set-strategic-number sn-gold-gatherer-percentage 0)
  54.     (set-strategic-number sn-stone-gatherer-percentage 0)
  55. )
  56.  
  57. (defrule
  58.     (goal resource-needed WOOD)
  59.     (current-age == dark-age)
  60.     (civilian-population < 10)
  61.     (not (strategic-number sn-wood-gatherer-percentage == 20) )
  62. =>
  63.     (set-strategic-number sn-wood-gatherer-percentage 20)
  64.     (set-strategic-number sn-food-gatherer-percentage 80)
  65.     (set-strategic-number sn-gold-gatherer-percentage 0)
  66.     (set-strategic-number sn-stone-gatherer-percentage 0)
  67. )
  68.  
  69. (defrule
  70.     (goal resource-needed NO)
  71.     (current-age == dark-age)
  72.     (civilian-population >= 10)
  73.     (not (strategic-number sn-wood-gatherer-percentage == 30) )
  74. =>
  75.     (set-strategic-number sn-wood-gatherer-percentage 30)
  76.     (set-strategic-number sn-food-gatherer-percentage 70)
  77. )
  78.  
  79. (defrule
  80.     (goal resource-needed WOOD)
  81.     (current-age == dark-age)
  82.     (civilian-population >= 10)
  83.     (not (strategic-number sn-wood-gatherer-percentage == 40) )
  84. =>
  85.     (set-strategic-number sn-wood-gatherer-percentage 40)
  86.     (set-strategic-number sn-food-gatherer-percentage 60)
  87. )
  88.  
  89. (defrule
  90.     (goal resource-needed FOOD)
  91.     (current-age == dark-age)
  92.     (civilian-population >= 10)
  93.     (not (strategic-number sn-wood-gatherer-percentage == 20) )
  94. =>
  95.     (set-strategic-number sn-wood-gatherer-percentage 20)
  96.     (set-strategic-number sn-food-gatherer-percentage 80)
  97. )
  98.  
  99. (defrule
  100.     (goal resource-needed GOLD)
  101.     (current-age == dark-age)
  102. =>
  103.     (set-strategic-number sn-wood-gatherer-percentage 25)
  104.     (set-strategic-number sn-food-gatherer-percentage 65)
  105.     (set-strategic-number sn-gold-gatherer-percentage 10)
  106.     (disable-self)
  107. )
  108.  
  109. ;***********************************************
  110. ;***********************************************
  111. ;FEUDAL AGE
  112. (defrule
  113.     (current-age == feudal-age)
  114. =>
  115.     (set-goal resource-needed NO)
  116. )
  117.  
  118. (defrule
  119.     (goal resource-supp FOOD-ONLY)
  120.     (current-age == feudal-age)
  121.     (food-amount < 150)
  122. =>
  123.     (set-goal resource-needed FOOD)
  124. )
  125.  
  126. (defrule
  127.     (goal resource-supp WOOD-FOOD)
  128.     (current-age == feudal-age)
  129.     (wood-amount < 75)
  130.     (food-amount > 100)
  131. =>
  132.     (set-goal resource-needed WOOD)
  133. )
  134.  
  135. (defrule
  136.     (goal resource-supp WOOD-FOOD)
  137.     (current-age == feudal-age)
  138.     (wood-amount > 75)
  139.     (food-amount < 100)
  140. =>
  141.     (set-goal resource-needed FOOD)
  142. )
  143.  
  144. (defrule
  145.     (goal resource-supp FOOD-GOLD)
  146.     (current-age == feudal-age)
  147.     (food-amount > 100)
  148.     (gold-amount < 50)
  149. =>
  150.     (set-goal resource-needed GOLD)
  151. )
  152.  
  153. (defrule
  154.     (goal resource-supp FOOD-GOLD)
  155.     (current-age == feudal-age)
  156.     (food-amount < 100)
  157.     (gold-amount > 50)
  158. =>
  159.     (set-goal resource-needed FOOD)
  160. )
  161.  
  162. (defrule
  163.     (current-age == feudal-age)
  164.     (wood-amount < 175)
  165.     (or
  166.         (building-type-count-total market == 0)
  167.         (building-type-count-total blacksmith == 0)
  168.     )
  169. =>
  170.     (set-goal resource-needed WOOD)
  171. )
  172.  
  173. (defrule
  174.     (goal sea-owner YES)
  175.     (current-age == feudal-age)
  176.     (warboat-count <= five-percent-pop)
  177.     (or
  178.         (wood-amount < 125)
  179.         (and
  180.             (unit-type-count-total transport-ship > 0)
  181.             (wood-amount < 90)
  182.         )
  183.     )
  184. =>
  185.     (set-goal resource-needed WOOD)
  186. )
  187.  
  188. (defrule
  189.     (goal upgrade-conflict NOTICE)
  190.     (current-age == feudal-age)
  191.     (food-amount < 800)
  192.     (gold-amount > 200)
  193. =>
  194.     (set-goal resource-needed FOOD)
  195. )
  196.  
  197. (defrule
  198.     (goal upgrade-conflict NOTICE)
  199.     (current-age == feudal-age)
  200.     (food-amount > 800)
  201.     (gold-amount < 200)
  202. =>
  203.     (set-goal resource-needed GOLD)
  204. )
  205.  
  206. (defrule
  207.     (goal wall-build YES)
  208.     (current-age == feudal-age)
  209.     (stone-amount < 30)
  210. =>
  211.     (set-goal resource-needed STONE)
  212. )
  213.  
  214. (defrule
  215.     (goal sea-owner YES)
  216.     (current-age == feudal-age)
  217.     (warboat-count < ten-percent-pop)
  218.     (wood-amount < 125)
  219.     (gold-amount > 30)
  220. =>
  221.     (set-goal resource-needed WOOD)
  222. )
  223.  
  224. (defrule
  225.     (goal sea-owner YES)
  226.     (current-age == feudal-age)
  227.     (warboat-count < ten-percent-pop)
  228.     (wood-amount > 125)
  229.     (gold-amount < 30)
  230. =>
  231.     (set-goal resource-needed GOLD)
  232. )
  233.  
  234. ;***********************************************
  235. ;***********************************************
  236. (defrule
  237.     (goal resource-needed NO)
  238.     (current-age == feudal-age)
  239. =>
  240.     (set-strategic-number sn-wood-gatherer-percentage 40)
  241.     (set-strategic-number sn-food-gatherer-percentage 45)
  242.     (set-strategic-number sn-gold-gatherer-percentage 10)
  243.     (set-strategic-number sn-stone-gatherer-percentage 5)
  244. )
  245.  
  246. (defrule
  247.     (goal resource-needed WOOD)
  248.     (current-age == feudal-age)
  249. =>
  250.     (set-strategic-number sn-wood-gatherer-percentage 50)
  251.     (set-strategic-number sn-food-gatherer-percentage 35)
  252.     (set-strategic-number sn-gold-gatherer-percentage 10)
  253.     (set-strategic-number sn-stone-gatherer-percentage 5)
  254. )
  255.  
  256. (defrule
  257.     (goal resource-needed FOOD)
  258.     (current-age == feudal-age)
  259. =>
  260.     (set-strategic-number sn-wood-gatherer-percentage 30)
  261.     (set-strategic-number sn-food-gatherer-percentage 55)
  262.     (set-strategic-number sn-gold-gatherer-percentage 10)
  263.     (set-strategic-number sn-stone-gatherer-percentage 5)
  264. )
  265.  
  266. (defrule
  267.     (goal resource-needed GOLD)
  268.     (current-age == feudal-age)
  269. =>
  270.     (set-strategic-number sn-wood-gatherer-percentage 35)
  271.     (set-strategic-number sn-food-gatherer-percentage 40)
  272.     (set-strategic-number sn-gold-gatherer-percentage 20)
  273.     (set-strategic-number sn-stone-gatherer-percentage 5)
  274. )
  275.  
  276. (defrule
  277.     (goal resource-needed STONE)
  278.     (current-age == feudal-age)
  279. =>
  280.     (set-strategic-number sn-wood-gatherer-percentage 35)
  281.     (set-strategic-number sn-food-gatherer-percentage 40)
  282.     (set-strategic-number sn-gold-gatherer-percentage 10)
  283.     (set-strategic-number sn-stone-gatherer-percentage 15)
  284. )
  285.  
  286. ;***********************************************
  287. ;***********************************************
  288. ;CASTLE AGE
  289. (defrule
  290.     (current-age == castle-age)
  291. =>
  292.     (set-goal resource-needed NO)
  293. )
  294.  
  295. (defrule
  296.     (goal resource-supp FOOD-ONLY)
  297.     (current-age == castle-age)
  298.     (food-amount < 250)
  299. =>
  300.     (set-goal resource-needed FOOD)
  301. )
  302.  
  303. (defrule
  304.     (current-age == castle-age)
  305.     (goal resource-supp GOLD-ONLY)
  306.     (gold-amount < 475)
  307. =>
  308.     (set-goal resource-needed GOLD)
  309. )
  310.  
  311. (defrule
  312.     (goal resource-supp WOOD-FOOD)
  313.     (current-age == castle-age)
  314.     (wood-amount < 150)
  315.     (food-amount > 200)
  316. =>
  317.     (set-goal resource-needed WOOD)
  318. )
  319.  
  320. (defrule
  321.     (goal resource-supp WOOD-FOOD)
  322.     (current-age == castle-age)
  323.     (wood-amount > 150)
  324.     (food-amount < 200)
  325. =>
  326.     (set-goal resource-needed FOOD)
  327. )
  328.  
  329. (defrule
  330.     (goal resource-supp WOOD-GOLD)
  331.     (current-age == castle-age)
  332.     (wood-amount > 300)
  333.     (gold-amount < 175)
  334. =>
  335.     (set-goal resource-needed GOLD)
  336. )
  337.  
  338. (defrule
  339.     (goal resource-supp WOOD-GOLD)
  340.     (current-age == castle-age)
  341.     (wood-amount < 300)
  342.     (gold-amount > 175)
  343. =>
  344.     (set-goal resource-needed WOOD)
  345. )
  346.  
  347. (defrule
  348.     (goal resource-supp WOOD-STONE)
  349.     (current-age == castle-age)
  350.     (wood-amount > 200)
  351.     (stone-amount < 300)
  352. =>
  353.     (set-goal resource-needed STONE)
  354. )
  355.  
  356. (defrule
  357.     (goal resource-supp WOOD-STONE)
  358.     (current-age == castle-age)
  359.     (wood-amount < 200)
  360.     (stone-amount > 300)
  361. =>
  362.     (set-goal resource-needed WOOD)
  363. )
  364.  
  365. (defrule
  366.     (goal resource-supp FOOD-GOLD)
  367.     (current-age == castle-age)
  368.     (food-amount > 350)
  369.     (gold-amount < 200)
  370. =>
  371.     (set-goal resource-needed GOLD)
  372. )
  373.  
  374. (defrule
  375.     (goal resource-supp FOOD-GOLD)
  376.     (current-age == castle-age)
  377.     (food-amount < 350)
  378.     (gold-amount > 200)
  379. =>
  380.     (set-goal resource-needed FOOD)
  381. )
  382.  
  383. (defrule
  384.     (goal resource-supp FOOD-STONE)
  385.     (current-age == castle-age)
  386.     (food-amount > 200)
  387.     (stone-amount < 250)
  388. =>
  389.     (set-goal resource-needed STONE)
  390. )
  391.  
  392. (defrule
  393.     (goal resource-supp FOOD-STONE)
  394.     (current-age == castle-age)
  395.     (food-amount < 200)
  396.     (stone-amount > 250)
  397. =>
  398.     (set-goal resource-needed FOOD)
  399. )
  400.  
  401. (defrule
  402.     (current-age == castle-age)
  403.     (wood-amount < 200)
  404.     (or
  405.         (building-type-count-total university == 0)
  406.         (building-type-count-total siege-workshop == 0)
  407.     )
  408. =>
  409.     (set-goal resource-needed WOOD)
  410. )
  411.  
  412. (defrule
  413.     (goal upgrade-conflict NOTICE)
  414.     (current-age == castle-age)
  415.     (food-amount < 1000)
  416.     (gold-amount > 800)
  417. =>
  418.     (set-goal resource-needed FOOD)
  419. )
  420.  
  421. (defrule
  422.     (goal upgrade-conflict NOTICE)
  423.     (current-age == castle-age)
  424.     (food-amount > 1000)
  425.     (gold-amount < 800)
  426. =>
  427.     (set-goal resource-needed GOLD)
  428. )
  429.  
  430. (defrule
  431.     (current-age == castle-age)
  432.     (or
  433.         (and
  434.             (goal castle-attempt YES)
  435.             (stone-amount < 650)
  436.         )
  437.         (and
  438.             (goal wall-build YES)
  439.             (stone-amount < 30)
  440.         )
  441.     )
  442. =>
  443.     (set-goal resource-needed STONE)
  444. )
  445.  
  446. (defrule
  447.     (goal sea-owner YES)
  448.     (current-age == castle-age)
  449.     (warboat-count < fifteen-percent-pop)
  450.     (wood-amount < 125)
  451.     (gold-amount > 50)
  452. =>
  453.     (set-goal resource-needed WOOD)
  454. )
  455.  
  456. (defrule
  457.     (goal sea-owner YES)
  458.     (current-age == castle-age)
  459.     (warboat-count < fifteen-percent-pop)
  460.     (wood-amount > 125)
  461.     (gold-amount < 50)
  462. =>
  463.     (set-goal resource-needed GOLD)
  464. )
  465.  
  466. ;***********************************************
  467. ;IMPERIAL AGE
  468. (defrule
  469.     (current-age == imperial-age)
  470. =>
  471.     (set-goal resource-needed NO)
  472. )
  473.  
  474. (defrule
  475.     (goal resource-supp FOOD-ONLY)
  476.     (current-age == imperial-age)
  477.     (food-amount < 250)
  478. =>
  479.     (set-goal resource-needed FOOD)
  480. )
  481.  
  482. (defrule
  483.     (goal resource-supp GOLD-ONLY)
  484.     (current-age == imperial-age)
  485.     (gold-amount < 475)
  486. =>
  487.     (set-goal resource-needed GOLD)
  488. )
  489.  
  490. (defrule
  491.     (goal resource-supp WOOD-FOOD)
  492.     (goal upgrade-conflict 33)
  493.     (current-age == imperial-age) 
  494.     (wood-amount < 1100)
  495.     (food-amount > 1000)
  496. =>
  497.     (set-goal resource-needed WOOD)
  498. )
  499.  
  500. (defrule
  501.     (goal resource-supp WOOD-FOOD)
  502.     (goal upgrade-conflict 33)
  503.     (current-age == imperial-age) 
  504.     (wood-amount > 1100)
  505.     (food-amount < 1000)
  506. =>
  507.     (set-goal resource-needed FOOD)
  508. )
  509.  
  510. (defrule
  511.     (goal resource-supp WOOD-FOOD)
  512.     (current-age == imperial-age) 
  513.     (wood-amount < 600)
  514.     (food-amount > 500)
  515.     (not (goal upgrade-conflict 33) )
  516. =>
  517.     (set-goal resource-needed WOOD)
  518. )
  519.  
  520. (defrule
  521.     (goal resource-supp WOOD-FOOD)
  522.     (current-age == imperial-age) 
  523.     (wood-amount > 600)
  524.     (food-amount < 500)
  525.     (not (goal upgrade-conflict 33) )
  526. =>
  527.     (set-goal resource-needed FOOD)
  528. )
  529.  
  530. (defrule
  531.     (goal resource-supp WOOD-GOLD)
  532.     (current-age == imperial-age) 
  533.     (wood-amount > 525)
  534.     (gold-amount < 500)
  535. =>
  536.     (set-goal resource-needed GOLD)
  537. )
  538.  
  539. (defrule
  540.     (goal resource-supp WOOD-GOLD)
  541.     (current-age == imperial-age) 
  542.     (wood-amount < 525)
  543.     (gold-amount > 500)
  544. =>
  545.     (set-goal resource-needed WOOD)
  546. )
  547.  
  548. (defrule
  549.     (goal resource-supp WOOD-STONE)
  550.     (current-age == imperial-age) 
  551.     (wood-amount > 400)
  552.     (stone-amount < 400)
  553. =>
  554.     (set-goal resource-needed STONE)
  555. )
  556.  
  557. (defrule
  558.     (goal resource-supp WOOD-STONE)
  559.     (current-age == imperial-age) 
  560.     (wood-amount < 400)
  561.     (stone-amount > 400)
  562. =>
  563.     (set-goal resource-needed WOOD)
  564. )
  565.  
  566. (defrule
  567.     (goal resource-supp FOOD-GOLD)
  568.     (current-age == imperial-age) 
  569.     (food-amount > 1600)
  570.     (gold-amount < 1200)
  571. =>
  572.     (set-goal resource-needed GOLD)
  573. )
  574.  
  575. (defrule
  576.     (goal resource-supp FOOD-GOLD)
  577.     (current-age == imperial-age) 
  578.     (food-amount < 1600)
  579.     (gold-amount > 1200)
  580. =>
  581.     (set-goal resource-needed FOOD)
  582. )
  583.  
  584. (defrule
  585.     (goal resource-supp FOOD-STONE)
  586.     (current-age == imperial-age) 
  587.     (food-amount > 500)
  588.     (stone-amount < 350)
  589. =>
  590.     (set-goal resource-needed STONE)
  591. )
  592.  
  593. (defrule
  594.     (goal resource-supp FOOD-STONE)
  595.     (current-age == imperial-age) 
  596.     (food-amount < 500)
  597.     (stone-amount > 350)
  598. =>
  599.     (set-goal resource-needed FOOD)
  600. )
  601.  
  602. (defrule
  603.     (goal castle-attempt YES)
  604.     (current-age == imperial-age)
  605.     (stone-amount < 650)
  606. =>
  607.     (set-goal resource-needed STONE)
  608. )
  609.  
  610. (defrule
  611.     (goal sea-owner YES)
  612.     (current-age == imperial-age)
  613.     (warboat-count < twenty-percent-pop)
  614.     (wood-amount < 200)
  615.     (gold-amount > 150)
  616. =>
  617.     (set-goal resource-needed WOOD)
  618. )
  619.  
  620. (defrule
  621.     (goal sea-owner YES)
  622.     (current-age == imperial-age)
  623.     (warboat-count < twenty-percent-pop)
  624.     (wood-amount > 200)
  625.     (gold-amount < 150)
  626. =>
  627.     (set-goal resource-needed GOLD)
  628. )
  629.  
  630. ;***********************************************
  631. ;WONDERING
  632. (defrule
  633.     (goal wonder-attempt POSSIBLE)
  634.     (wood-amount < 1000)
  635.     (gold-amount > 1000)
  636.     (stone-amount > 1000)
  637. =>
  638.     (set-goal resource-needed WOOD)
  639. )
  640.  
  641. (defrule
  642.     (goal wonder-attempt POSSIBLE)
  643.     (wood-amount > 1000)
  644.     (gold-amount < 1000)
  645.     (stone-amount > 1000)
  646. =>
  647.     (set-goal resource-needed GOLD)
  648. )
  649.  
  650. (defrule
  651.     (goal wonder-attempt POSSIBLE)
  652.     (wood-amount > 1000)
  653.     (gold-amount > 1000)
  654.     (stone-amount < 1000)
  655. =>
  656.     (set-goal resource-needed STONE)
  657. )
  658. ;***********************************************
  659. ;***********************************************
  660. (defrule
  661.     (goal resource-needed NO)
  662.     (current-age >= castle-age)
  663. =>
  664.     (set-strategic-number sn-wood-gatherer-percentage 40)
  665.     (set-strategic-number sn-food-gatherer-percentage 40)
  666.     (set-strategic-number sn-gold-gatherer-percentage 15)
  667.     (set-strategic-number sn-stone-gatherer-percentage 5)
  668. )
  669.  
  670. ;extra wood
  671. (defrule
  672.     (goal resource-needed WOOD)
  673.     (current-age >= castle-age)
  674. =>
  675.     (set-strategic-number sn-wood-gatherer-percentage 50)
  676.     (set-strategic-number sn-food-gatherer-percentage 30)
  677.     (set-strategic-number sn-gold-gatherer-percentage 15)
  678.     (set-strategic-number sn-stone-gatherer-percentage 5)
  679. )
  680.  
  681. ;extra food
  682. (defrule
  683.     (goal resource-needed FOOD)
  684.     (current-age >= castle-age)
  685. =>
  686.     (set-strategic-number sn-wood-gatherer-percentage 30)
  687.     (set-strategic-number sn-food-gatherer-percentage 50)
  688.     (set-strategic-number sn-gold-gatherer-percentage 15)
  689.     (set-strategic-number sn-stone-gatherer-percentage 5)
  690. )
  691.  
  692. ;extra gold
  693. (defrule
  694.     (goal resource-needed GOLD)
  695.     (current-age >= castle-age)
  696. =>
  697.     (set-strategic-number sn-wood-gatherer-percentage 35)
  698.     (set-strategic-number sn-food-gatherer-percentage 35)
  699.     (set-strategic-number sn-gold-gatherer-percentage 25)
  700.     (set-strategic-number sn-stone-gatherer-percentage 5)
  701. )
  702.  
  703. ;extra stone
  704. (defrule
  705.     (goal resource-needed STONE)
  706.     (current-age >= castle-age)
  707. =>
  708.     (set-strategic-number sn-wood-gatherer-percentage 35)
  709.     (set-strategic-number sn-food-gatherer-percentage 35)
  710.     (set-strategic-number sn-gold-gatherer-percentage 15)
  711.     (set-strategic-number sn-stone-gatherer-percentage 15)
  712. )